#ifndef ENDCONNECTINSDESTHANDLERB_H
#define ENDCONNECTINSDESTHANDLERB_H

#include "EndConnectInsDestHandler.h"
#include "InsteadHttpUrl.h"
#include "Log.h"

class EndConnectInsDestHandlerB:public EndConnectInsDestHandler
{
public:
	EndConnectInsDestHandlerB(const InsteadHttpUrl &url,DWORD recvCount):EndConnectInsDestHandler(url),m_oriRecvCount(recvCount){}

	~EndConnectInsDestHandlerB(){}

protected:
	virtual ITransHandler* GetNextHandler();

	virtual ExecuteResultCode OnExecuteError(ClientContext &client,OVERLAPPED *ovl,ITransHandler::ExecuteResultCode executeResult);

private:
	static log4cplus::Logger log;

	DWORD m_oriRecvCount;
};

#endif